<?php





namespace app\mini\controller;



// use app\BaseController as BaseController;

use app\mini\model\PersonService as PersonServiceModel;

use think\response\Json;





class PersonService extends Access

{

	/**

     * 服务详情

     * @return Json

     * @author hz

     * @create 2021-10-19

     */

    public function service(): Json

    {

    	$this->param = request()->param();

        $personServiceModel = new PersonServiceModel();

        $this->param['customer_id'] = $this->customerId; // 员工端则为员工id

        $data = $personServiceModel->getServiceList($this->param);

        return resultArray($data);

    }



    /**

     * 服务记录

     * @return Json

     * @author hz

     * @create 2021-10-19

     */

    public function serviceLog(): Json

    {

        $this->param = request()->param();

        $personServiceModel = new PersonServiceModel();

        $this->param['customer_id'] = $this->customerId;// 员工端则为员工id

        $data = $personServiceModel->getServiceLogList($this->param);

        return resultArray($data);

    }

    /**
     * 员工小程序获取客户服务卡项列表
     * @return Json
     * @author yp
     * @create 2022-09-08
     */
    public function staff_getServiceList(): Json
    {
        $this->param = request()->param();

        $personServiceModel = new PersonServiceModel();

        $data = $personServiceModel->getList($this->param);

        return resultArray($data);
    }

}